<div id="border">
<form action="<?=site_url("classify/save_addnew_classify")?>" name="" method="post" enctype="multipart/form-data">  
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td valign="top">       
        <table width="705" border="0" align="center" id="usertitle">
          <tr>
            <td class="mapsite">
            	<a href="<?=site_url("main")?>">HOME</a>&nbsp;&nbsp;
                <img src="<?=base_url();?>images/icon_list_separator_breadcrumb.png" width="12" height="12" align="absbottom" />&nbsp;&nbsp;
                <a href="<?=site_url("classify")?>">Classified Ads</a>&nbsp;&nbsp;
                <img src="<?=base_url();?>images/icon_list_separator_breadcrumb.png" width="12" height="12" align="absbottom" />&nbsp;&nbsp;
                Post ads
            </td>
            <td align="right"><img src="<?=base_url();?>images/Secure_connection.gif" alt="" width="116" height="22" /></td>
          </tr>
        </table>
        <div id="register">
        <div class="user_line_border_top">&nbsp;</div>
                
        	  <table width="88%" border="0" align="center" cellpadding="0" cellspacing="0">
                 <?php if($error_message!=""){?>
                 <tr>
                    <td height="26" colspan="2"><div class="error_message" style="color:#BD2031; font-size:11px; line-height:20px;"><?=htmlspecialchars($error_message);?></div></td>
                </tr>
				<? }?>
                <tr>
                    <td align="right" class="ttd">Category:</td>
                    <td height="48">
                        <select id="cbocategory" name="cbocategory" class="textbox">
						  <?php foreach($all_cate->result() as $category): 
                            if($cbocategory==$category->classify_id){
                                $selectcbo="selected=/'selected/'";
                            }else{
                                 $selectcbo="";
                            }
                          ?>
                          <option value="<?=$category->classify_id;?>" <?=$selectcbo;?> ><?=$category->classify_desc;?></option>
                          <?php endforeach; ?>
                        </select>
                    </td>
                    
                </tr>
                <tr>
                    <td align="right" class="ttd">Title:</td>
                  <td height="48"><input type="text" id="txtproductname" name="txtproductname" class="textbox" maxlength="100" value="<?=htmlspecialchars($txtproductname);?>" /><font class="require">*</font></td>
                    
                </tr>
                <tr>
                    <td align="right" class="ttd" valign="top">Description</td>
                <td height="48"><textarea name="txtdesc" rows="5" id="txtdesc" style="height:190px;width:225px;"><?=htmlspecialchars($txtdesc);?></textarea></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right" class="ttd">Price:</td>
                  <td height="48"><input type="text" id="txtprice" name="txtprice"class="textbox"  maxlength="8" value="<?=htmlspecialchars($txtprice);?>" />&nbsp;($)<font class="require">* (number only)</font></td>
                    
                </tr>
                <tr>
                    <td align="right" class="ttd">Contact Name:</td>
                  <td height="48"><input type="text" id="txtcontactname" name="txtcontactname" class="textbox" maxlength="100" value="<?=htmlspecialchars($txtcontactname);?>" /></td>
                </tr>
                <tr>
                    <td align="right" class="ttd">Phone:</td>
                  <td height="48"><input type="text" id="txtphone" name="txtphone" class="textbox" maxlength="50" value="<?=htmlspecialchars($txtphone);?>" /></td>
                    
                </tr>
                <tr>
                    <td align="right" class="ttd">Fax:</td>
                  <td height="48"><input type="text" id="txtfax" name="txtfax" class="textbox" maxlength="50" value="<?=htmlspecialchars($txtfax);?>" /></td>
                    
                </tr>
                <tr>
                    <td align="right" class="ttd">Address:</td>
                	<td height="48"><input name="txtaddress" type="text" class="textbox" id="txtaddress" value="<?=htmlspecialchars($txtaddress);?>" maxlength="110" /></td>
                    <td></td>
                </tr>
                <tr>
                  <td align="right" class="ttd">Email:</td>
                  <td height="48"><input type="text" id="txtemail" name="txtemail" class="textbox" maxlength="100" value="<?=htmlspecialchars($txtemail);?>" /></td>
                  
                </tr>
                <tr>
                    
                    <td align="center"></td>
                    <td height="26"><font style="color:#999;"><?=$Z_TRANS->value('title_image_format')?>: Jpeg, Jpg, Gif, <?=$Z_TRANS->value('title_or')?> Png <?=$Z_TRANS->value('title_size')?>: 3MB</font></td>
                </tr>
                <tr>
                    <td align="right" class="ttd" style="line-height:26px;">Image 1:<br />Image 2:<br />Image 3:<br />Image 4:<br />Image 5:</td>
                  <td height="48">
                    <input type="file" id="image1" name="image1" /><br />

                      <input type="file" id="image2" name="image2" /><br />

                      <input type="file" id="image3" name="image3" /><br />

                      <input type="file" id="image4" name="image4" /><br />
                      
                      <input type="file" id="image5" name="image5" />
                  </td>
                    
                </tr>
                <tr>
                  <td height="48">&nbsp;</td>
                  <td height="68"><input type="button" value="<?=$Z_TRANS->value('title_back')?>" onclick="document.location='javascript:history.back(1)'" style="height:26px;" /> <input type="submit" name="btnsave" value="<?=$Z_TRANS->value('title_post')?>" style="height:26px;" /></td>
                </tr>
            </table>  
        </div>
        </td>
        <td width="254" valign="top">
			<?php include APPPATH."views/templates/common/right_content.php"; ?>
         </td>
         
      </tr>
  </table>
  </form>
</div>
